<?php echo ''; ?>
<div class="panel-heading"><span class="titulo_modulo">Inventario</span></div>
<span class="botonera">
    <?php //echo $this->Html->link('Nuevo', '/Inventarios/nuevo', array('class' => 'btn_opciones nuevo')); ?>
</span>
<table id="" class="display">
    <thead>
        <tr>
            <th width="1px">C&oacute;digo</th>
            <th width="520px">Nombre</th>
            <th width="80px">Precio</th>
            <th width="80px">Cant</th>
            <th width="80px">Stock Min</th>
            <th width="80px">Stock Max</th>
            <th width="1px" class="no_ordenar">Acciones</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($listado as $data) { ?>
        <tr>
            <td class="centro"><?php echo $data['Articulo']['codigo']; ?></td>
            <td class="izquierda"><?php echo $data['Articulo']['nombre']; ?></td>
            <td class="derecha"><?php echo $this->Util->miles($data['ArticuloDetalle']['precio']); ?></td>
            <td class="derecha"><?php echo $data['ArticuloDetalle']['cantidad']; ?></td>
            <td class="derecha"><?php echo $data['ArticuloDetalle']['stock_minimo']; ?></td>
            <td class="derecha"><?php echo $data['ArticuloDetalle']['stock_maximo']; ?></td>
            <td class="centro"><?php echo $this->Html->link('Editar', "/Articulos/inventario_editar/{$this->Util->id($data['Articulo']['id'])}", array('class' => 'btn_opciones editar')); ?></td>
        </tr>
        <?php } ?>
    </tbody>
</table>
<script type="text/javascript">
    $(function(){
        $('table.display').dataTable();
    });
</script>